<template>
  <view style="padding: 12px">
    <view @click="gotoPage0" class="btn-outer" style="margin-bottom: 12px">
      gotoPage0
    </view>
    <view @click="gotoPage1" class="btn-outer" style="margin-bottom: 12px">
      report
    </view>
    <view @click="gotoPage2" class="btn-outer" style="margin-bottom: 12px">
      list
    </view>
    <view @click="gotoPage3" class="btn-outer">gotoPage3</view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        savedFilePath: "",
      };
    },
    onLoad(options) {},
    onShow() {},
    methods: {
      gotoPage0() {
        uni.navigateTo({
          url: "/pages/index/open1?name=/report/CBS1/CBS1XSBG20240000572-3_28-Y.pdf",
        });
      },
      gotoPage1() {
        uni.navigateTo({
          url: "/pages/index/open2?name=/report/CBS1/CBS1XSBG20240000572-3_28-Y.pdf",
        });
      },
      gotoPage2() {
        uni.navigateTo({
          url: "/pages/index/list",
        });
      },
      gotoPage3() {
        uni.navigateToMiniProgram({
          // appid  写你要跳转的小程序的 appid
          appId: "wx7ddcc314633501b0",
          // 路径写  src下的路径,假如你跳转的是pages下的页面,就可以写pages/index
          path: "my/index?id=1545243840380669954",
          extraData: {
            // 'type': 'out'
          },
          // 这个不写的话会显示开发环境,不能正常跳转,写上就能正常跳转了
          envVersion: "develop",
          success(res) {
            // 打开成功
            uni.showToast({
              title: "跳转成功",
            });
          },
          fail(err) {
            // 打开失败/取消
            uni.showToast({
              title: "跳转不成功",
            });
          },
        });
      },
    },
  };
</script>

<style>
  .btn-outer {
    background-color: #d1d1d1;
    border-radius: 4px;
    padding: 2px;
    width: 60px;
    cursor: pointer;
  }
</style>
